package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.model.po.Teachplan;
import com.xuecheng.content.model.vo.TeachplanVo;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMapper extends BaseMapper<Teachplan> {

    /**
     * 课程计划查询
     * @param courseId
     * @return
     */
    public List<TeachplanVo> selectTreeNodes(Long courseId);

    /**
     * 查看是否有小节
     * @param id
     */
    public Integer secondCountById(Long id);
}
